﻿using Microsoft.EntityFrameworkCore;
using System;
using System.CJL.Domain;
using System.CJL.Infrstructre.Interface;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.CJL.Infrstructre.Impl
{
    public class RawMaterialRepository : MESRepository<RawMaterial>,IRawMaterialRepository
    {
        public RawMaterialRepository(MESDbContext context):base(context)
        {
            
        }
        public async Task<int> Addasync(RawMaterial entity)
        {
            return await base.Addasync(entity);
        }

        public async Task<int> DeleteAsync(int id)
        {
            return await base.DeleteAsync(id);
        }

        public async Task<List<RawMaterial>> GetAll()
        {
            return await base.GetAll();
        }

        public async Task<RawMaterial> GetMondel(int id)
        {
            return await base.GetMondel(id);
        }

        public async Task<int> UpdateAsync(RawMaterial entity)
        {
            return await base.UpdateAsync(entity);
        }
    }
}
